package com.gamemost.libepub;

import com.gamemost.templestay.Config;

public class Book {
	private String title;
	private String author;
	private String publisher;
	private String date;
	private String layout;
	public static String FIX_LAYOUT = "pre-paginated";
	public static String FLOW_LAYOUT = "reflowable";
	int codeLayout = Config.REFLOW_LAYOUT;	
	public String getLayout() {
		return layout;
	}
	public int getCodeLayout() {
		return codeLayout;
	}
	public void setLayout(String layout) {
		this.layout = layout;
		if (FIX_LAYOUT.equals(layout)) {
			codeLayout = 1;
		}
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Title: " + title + ", author: " + author + ", publisher: " + publisher + ", date: " +date;
	}
	
	
}

